package IssueFuction;

import issue.Issue;
import issue.IssueList;

import java.util.Scanner;

public class PutFunctions implements IFunctions{
    @Override
    public void work(IssueList issueList) {
        System.out.println("提出问题：");
        System.out.println("请输入你要提出的问题");
        Scanner scanner=new Scanner(System.in);
        String content=scanner.nextLine();
        Issue issue=new Issue(issueList.getUsedSize()+1,content);
        issueList.setIssues(issue);
        issueList.setUsedSize(issueList.getUsedSize()+1);//提出问题数量加一
        System.out.println("提出问题成功");

    }
}
